QT       += core gui xml svg
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TEMPLATE = lib
DEFINES += DAWORKFLOW_BUILDLIB
CONFIG		+=  c++11
CONFIG		+=  qt
include($$PWD/../common.pri)
include($$PWD/../function.pri)


TARGET = $$saLibNameMake(DAWorkFlow)
# 通用的设置
$$commonProLibSet($${TARGET})

# 在lib文件夹下编译完后，把dll文件拷贝到bin目录下
$$saCopyLibToBin($${TARGET})
# 依赖 可缩放的graphicsView
include($${DA_SRC_DIR}/DAGraphicsView/DAGraphicsView.pri)
# 依赖 插件 todo 节点插件可以单独作为一个插件包
include($${DA_SRC_DIR}/DAPluginSupport/DAPluginSupport.pri)
# 依赖 设置界面 TODO 节点设置可以单独作为一个包
include($${DA_SRC_DIR}/DACommonWidgets/DACommonWidgets.pri)
# 用到了ctk相关的几个窗口，直接引入
include($$DA_3RD_PARTY_DIR/ctk/ctk.pri)

HEADERS +=\
    DACommandsForWorkFlowNodeGraphics.h \
    DANodeItemSettingWidget.h \
    DANodeLinkItemSettingWidget.h \
    DANodeLinkPointDrawDelegate.h \
    DANodeSettingWidget.h \
    DAStandardNodePixmapGraphicsItem.h \
    DAStandardNodeSvgGraphicsItem.h \
    DAStandardNodeWidgetGraphicsItem.h \
    DAWorkFlowExecuter.h \
    DAWorkFlowGlobal.h \
    DAAbstractNode.h \
    DAAbstractNodeFactory.h \
    DAAbstractNodeGraphicsItem.h \
    DAAbstractNodeLinkGraphicsItem.h \
    DAAbstractNodePlugin.h \
    DAAbstractNodeWidget.h \
    DANodeGraphicsScene.h \
    DANodeLinkPoint.h \
    DANodeMetaData.h \
    DANodePalette.h \
    DAStandardNodeLinkGraphicsItem.h \
    DAWorkFlow.h

SOURCES += \
    DAAbstractNode.cpp \
    DAAbstractNodeFactory.cpp \
    DAAbstractNodeGraphicsItem.cpp \
    DAAbstractNodeLinkGraphicsItem.cpp \
    DAAbstractNodePlugin.cpp \
    DAAbstractNodeWidget.cpp \
    DACommandsForWorkFlowNodeGraphics.cpp \
    DANodeGraphicsScene.cpp \
    DANodeItemSettingWidget.cpp \
    DANodeLinkItemSettingWidget.cpp \
    DANodeLinkPoint.cpp \
    DANodeLinkPointDrawDelegate.cpp \
    DANodeMetaData.cpp \
    DANodePalette.cpp \
    DANodeSettingWidget.cpp \
    DAStandardNodeLinkGraphicsItem.cpp \
    DAStandardNodePixmapGraphicsItem.cpp \
    DAStandardNodeSvgGraphicsItem.cpp \
    DAStandardNodeWidgetGraphicsItem.cpp \
    DAWorkFlow.cpp \
    DAWorkFlowExecuter.cpp

FORMS += \
    DANodeItemSettingWidget.ui \
    DANodeLinkItemSettingWidget.ui \
    DANodeSettingWidget.ui



